package 图书馆管理系统.book;

public class Book {
    private String name;//书名
    private String author;//作者
    private String type;//类型
    private Double price;//价格
    private boolean state;//是否被借出

    public Book() {
    }

    public Book(String name, String author, String type, Double price) {
        this.name = name;
        this.author = author;
        this.type = type;
        this.price = price;
    }

    public String getName() {
        return name;
    }

    public String getAuthor() {
        return author;
    }

    public String getType() {
        return type;
    }

    public Double getPrice() {
        return price;
    }

    public boolean isState() {
        return state;
    }

    public void setType(String type) {
        this.type = type;
    }

    public void setPrice(Double price) {
        this.price = price;
    }

    public void setState(boolean state) {
        this.state = state;
    }

    @Override
    public String toString() {
        return "Book{" +
                "name='" + name + '\'' +
                ", author='" + author + '\'' +
                ", type='" + type + '\'' +
                ", price=" + price +
                ", state=" + state +
                '}';
    }
}
